package org.gourpg.model.project;

import java.sql.Timestamp;

/**
 * 项目基础信息实体
 */
public class ProjectDetail {
    /**
     * 项目编号，主键
     */
    private Integer projectId;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 项目类型（自研项目、外部项目、人力项目）字典 PROJECT_TYPE
     */
    private String projectType;

    /**
     * 项目状态（待启动、进行中、已结束、终止）字典 PROJECT_STATUS
     */
    private String projectStatus;

    /**
     * 项目说明
     */
    private String projectRemark;

    /**
     * 启动时间
     */
    private Timestamp projectStartTime;

    /**
     * 结束时间
     */
    private Timestamp projectEndTime;

    /**
     * 项目负责人
     */
    private Integer projectPersonId;

    public ProjectDetail() {
    }

    public Integer getProjectId() {
        return this.projectId;
    }

    public String getProjectName() {
        return this.projectName;
    }

    public String getProjectType() {
        return this.projectType;
    }

    public String getProjectStatus() {
        return this.projectStatus;
    }

    public String getProjectRemark() {
        return this.projectRemark;
    }

    public Timestamp getProjectStartTime() {
        return this.projectStartTime;
    }

    public Timestamp getProjectEndTime() {
        return this.projectEndTime;
    }

    public Integer getProjectPersonId() {
        return this.projectPersonId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    public void setProjectStatus(String projectStatus) {
        this.projectStatus = projectStatus;
    }

    public void setProjectRemark(String projectRemark) {
        this.projectRemark = projectRemark;
    }

    public void setProjectStartTime(Timestamp projectStartTime) {
        this.projectStartTime = projectStartTime;
    }

    public void setProjectEndTime(Timestamp projectEndTime) {
        this.projectEndTime = projectEndTime;
    }

    public void setProjectPersonId(Integer projectPersonId) {
        this.projectPersonId = projectPersonId;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ProjectDetail)) return false;
        final ProjectDetail other = (ProjectDetail) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$projectId = this.getProjectId();
        final Object other$projectId = other.getProjectId();
        if (this$projectId == null ? other$projectId != null : !this$projectId.equals(other$projectId)) return false;
        final Object this$projectName = this.getProjectName();
        final Object other$projectName = other.getProjectName();
        if (this$projectName == null ? other$projectName != null : !this$projectName.equals(other$projectName))
            return false;
        final Object this$projectType = this.getProjectType();
        final Object other$projectType = other.getProjectType();
        if (this$projectType == null ? other$projectType != null : !this$projectType.equals(other$projectType))
            return false;
        final Object this$projectStatus = this.getProjectStatus();
        final Object other$projectStatus = other.getProjectStatus();
        if (this$projectStatus == null ? other$projectStatus != null : !this$projectStatus.equals(other$projectStatus))
            return false;
        final Object this$projectRemark = this.getProjectRemark();
        final Object other$projectRemark = other.getProjectRemark();
        if (this$projectRemark == null ? other$projectRemark != null : !this$projectRemark.equals(other$projectRemark))
            return false;
        final Object this$projectStartTime = this.getProjectStartTime();
        final Object other$projectStartTime = other.getProjectStartTime();
        if (this$projectStartTime == null ? other$projectStartTime != null : !this$projectStartTime.equals(other$projectStartTime))
            return false;
        final Object this$projectEndTime = this.getProjectEndTime();
        final Object other$projectEndTime = other.getProjectEndTime();
        if (this$projectEndTime == null ? other$projectEndTime != null : !this$projectEndTime.equals(other$projectEndTime))
            return false;
        final Object this$projectPersonId = this.getProjectPersonId();
        final Object other$projectPersonId = other.getProjectPersonId();
        if (this$projectPersonId == null ? other$projectPersonId != null : !this$projectPersonId.equals(other$projectPersonId))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ProjectDetail;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $projectId = this.getProjectId();
        result = result * PRIME + ($projectId == null ? 43 : $projectId.hashCode());
        final Object $projectName = this.getProjectName();
        result = result * PRIME + ($projectName == null ? 43 : $projectName.hashCode());
        final Object $projectType = this.getProjectType();
        result = result * PRIME + ($projectType == null ? 43 : $projectType.hashCode());
        final Object $projectStatus = this.getProjectStatus();
        result = result * PRIME + ($projectStatus == null ? 43 : $projectStatus.hashCode());
        final Object $projectRemark = this.getProjectRemark();
        result = result * PRIME + ($projectRemark == null ? 43 : $projectRemark.hashCode());
        final Object $projectStartTime = this.getProjectStartTime();
        result = result * PRIME + ($projectStartTime == null ? 43 : $projectStartTime.hashCode());
        final Object $projectEndTime = this.getProjectEndTime();
        result = result * PRIME + ($projectEndTime == null ? 43 : $projectEndTime.hashCode());
        final Object $projectPersonId = this.getProjectPersonId();
        result = result * PRIME + ($projectPersonId == null ? 43 : $projectPersonId.hashCode());
        return result;
    }

    public String toString() {
        return "ProjectDetail(projectId=" + this.getProjectId() + ", projectName=" + this.getProjectName() + ", projectType=" + this.getProjectType() + ", projectStatus=" + this.getProjectStatus() + ", projectRemark=" + this.getProjectRemark() + ", projectStartTime=" + this.getProjectStartTime() + ", projectEndTime=" + this.getProjectEndTime() + ", projectPersonId=" + this.getProjectPersonId() + ")";
    }
}
